<?php session_start(); ?>

<html>
<body>
<?php
	echo "Logged in as: ".$_SESSION['user'];

	if($_GET['classid'] == 1)
	{
	echo '
		<table>
		<tr>
			<td>Student </td>
			<td>Assignment 1</td>
			<td>Assignment 2</td>
			<td>Grade</td>
		</tr>
		<tr>
			<td><a href="./student.php?studentid=1">John Doe</a></td>
			<td>30/30</td>
			<td>27/30</td>
			<td>57/60</td>
		</tr>
		<tr>
			<td><a href="./student.php?studentid=2">Jane Doe</a></td>
			<td>29/30</td>
			<td>28/30</td>
			<td>57/60</td>
		</tr>
		</table>';
	}

	else
	{
		echo "<br />";
		echo "Error: no class selected";
	}
?>
</body>
</html>